
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
    background-color: #f4f4f4;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 导航栏 */
nav {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 轮播图 */
.banner {
    height: 300px;
    background: linear-gradient(135deg, #ff85a2, #ff9a9e);
    margin: 20px 0;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
/* 轮播图容器 */
.carousel {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 轮播图项 */
.carousel-inner {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
    background-size: cover;
    background-position: center;
}

/* 轮播图指示点 */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.indicator.active {
    background-color: #fb7299;
    width: 20px;
    border-radius: 5px;
}

/* 轮播图控制箭头 */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 20px;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s;
}

.carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}

/* 分类区域 */
.category-section {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.category-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #222;
    border-left: 4px solid #fb7299;
    padding-left: 10px;
}

.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.category-item {
    background-color: #f8f8f8;
    text-decoration: none;
    color: black;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.category-item:focus {
    background-color: #fb7299;
    color: white;
}

.category-item:hover {
    background-color: #fb7299;
    color: white;
}
.category-item.active {
    background-color: #fb7299;
    color: white;
}
.att-item{
    background-color: #f8f8f8;
    text-decoration: none;
    color: black;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.att-item:focus {
    background-color: #fb7299;
    color: white;
}

.att-item:hover {
    background-color: #fb7299;
    color: white;
}

/* 商品展示 */
.products-section {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.products-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #222;
    border-left: 4px solid #fb7299;
    padding-left: 10px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    height: 350px;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #999;
}

.product-info {
    padding: 15px;
}

.product-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #222;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    color: #fb7299;
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
}

/* 活动展示 */
.events-section {
    margin-top: 30px;
}

.event-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.event-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #222;
}

.event-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.event-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.event-table th, .event-table td {
    border: 1px solid #eee;
    padding: 8px 12px;
    text-align: center;
}

.event-table th {
    background-color: #f8f8f8;
    font-weight: normal;
    color: #666;
}

.divider {
    height: 1px;
    background-color: #eee;
    margin: 30px 0;
}
